/**
 * related to mapRowTemplate.ui
 * 
 * @Author : chenglm
 * @Timestamp : 2016-07-20
 */
var mapSelected = ui("mapSelected");
var labelAddress=ui("labelAddress");
var do_Label_name=ui("do_Label_name");
var root=ui("$");
//设置数据绑定的映射关系
root.setMapping({
	"do_Label_name.text":"name",
	"do_Label_name.tag":"current",
	"do_Label_address.text":"address",
	"mapSelected.tag":"select"
});

root.on("dataRefreshed", function(){
	var select = mapSelected.tag;
	if (select == 1) {
		mapSelected.visible = true;
	} else  {
		mapSelected.visible = false;
	}
	if(do_Label_name.tag==1){
		labelAddress.visible=true;
	}else{
		labelAddress.visible=false;
	}
});